package com.ruoyi.platform.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户基础信息对象 t_user_info
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
public class TUserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID，自增主键 */
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 是否为企业用户 */
    @Excel(name = "是否为企业用户")
    private Integer isEnterpriseUser;

    /** 会员等级 */
    @Excel(name = "会员等级")
    private String memberLevel;

    /** 用户余额 */
    @Excel(name = "用户余额")
    private BigDecimal userBalance;

    /** 注册渠道 */
    @Excel(name = "注册渠道")
    private String registerChannel;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 性别：男/女/未知 */
    private String gender;

    /** 最后登录方式 */
    private String lastLoginWay;

    /** 最后登录大屏时间 */
    private Date lastLoginLargeScreenTime;

    /** 最后登录大屏方式 */
    private String lastLoginLargeScreenWay;

    /** 最后下单时间 */
    private Date lastOrderTime;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setIsEnterpriseUser(Integer isEnterpriseUser) 
    {
        this.isEnterpriseUser = isEnterpriseUser;
    }

    public Integer getIsEnterpriseUser() 
    {
        return isEnterpriseUser;
    }

    public void setMemberLevel(String memberLevel) 
    {
        this.memberLevel = memberLevel;
    }

    public String getMemberLevel() 
    {
        return memberLevel;
    }

    public void setUserBalance(BigDecimal userBalance) 
    {
        this.userBalance = userBalance;
    }

    public BigDecimal getUserBalance() 
    {
        return userBalance;
    }

    public void setRegisterChannel(String registerChannel) 
    {
        this.registerChannel = registerChannel;
    }

    public String getRegisterChannel() 
    {
        return registerChannel;
    }

    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }

    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }

    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }

    public void setLastLoginWay(String lastLoginWay) 
    {
        this.lastLoginWay = lastLoginWay;
    }

    public String getLastLoginWay() 
    {
        return lastLoginWay;
    }

    public void setLastLoginLargeScreenTime(Date lastLoginLargeScreenTime) 
    {
        this.lastLoginLargeScreenTime = lastLoginLargeScreenTime;
    }

    public Date getLastLoginLargeScreenTime() 
    {
        return lastLoginLargeScreenTime;
    }

    public void setLastLoginLargeScreenWay(String lastLoginLargeScreenWay) 
    {
        this.lastLoginLargeScreenWay = lastLoginLargeScreenWay;
    }

    public String getLastLoginLargeScreenWay() 
    {
        return lastLoginLargeScreenWay;
    }

    public void setLastOrderTime(Date lastOrderTime) 
    {
        this.lastOrderTime = lastOrderTime;
    }

    public Date getLastOrderTime() 
    {
        return lastOrderTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("phoneNumber", getPhoneNumber())
            .append("isEnterpriseUser", getIsEnterpriseUser())
            .append("memberLevel", getMemberLevel())
            .append("userBalance", getUserBalance())
            .append("registerChannel", getRegisterChannel())
            .append("registerTime", getRegisterTime())
            .append("lastLoginTime", getLastLoginTime())
            .append("gender", getGender())
            .append("lastLoginWay", getLastLoginWay())
            .append("lastLoginLargeScreenTime", getLastLoginLargeScreenTime())
            .append("lastLoginLargeScreenWay", getLastLoginLargeScreenWay())
            .append("lastOrderTime", getLastOrderTime())
            .toString();
    }
}
